class XORNet(nn.Module):
    def __init__(self):
        super(XORNet, self).__init__()
        self.fc0 = nn.Linear(2,2)
        self.fc1 = nn.Linear(2,1)
    def forward(self,x):
        linear0 = self.fc0(x)
        hidden = torch.Sigmoid(linear0) # F.Sigmoid(linear0)
        linear1 = self.fc1(hidden)
        out = torch.Sigmoid(linear1)
        return out
